<?php
class DynamicDatatypeDeletor
{
    
    
    public static function delete(Datatype_base $dObj)
    {
        
        $className = $dObj->getType() . 'Deletor';
        
        $fileName = 'Deletors/' . $className .  '.php' ;
        
        if(is_file(dirname(__FILE__) . '/' . $fileName))
        {
            require_once $fileName;
            $returner = call_user_func(array($className, 'Delete'), $dObj);
            return $returner;
        }
        
        
        return true;
    }
    
}